
--初始化组件
local WaitTime=10
local function Init(component)
	local IsSuccess = nil;
	local data = nil;
	while not IsSuccess do --直到加载成功
		local s, d = xpcall(function()
			return require(game:GetService("ReplicatedStorage"):WaitForChild("OHOH", WaitTime):WaitForChild(component, WaitTime):WaitForChild(component .. "OHOH", WaitTime));
		end, debug.traceback);
		IsSuccess = s;
		data = d;
		if not IsSuccess then
			warn(data);
			wait();
		end;	
	end; 
	return data;
end;

--warn("+++++++++++++++++++++++++++----->ClientStart-->0")
local common = Init("Common"); --公共组件
_G.GameAnalyticsClient = common.load.GameAnalyticsClient(); --加载游戏统计

Init("Client").load.GameClient().new():Start(); --开始游戏

--warn("+++++++++++++++++++++++++++----->ClientStart-->1")
